package com.jy.adscm.stock.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-23
 */
public class JyInStorage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 产品
     */
    private String product;
    @TableField(exist = false)
    private String productName;
    /**
     * 订单号
     */
    private String orderNum;
    /**
     * 类型
     */
    private String type;
    /**
     * 型号
     */
    private String typeNum;
    /**
     * 单位
     */
    private String unit;
    @TableField(exist = false)
    private String unitName;
    /**
     * 入库数量
     */
    @TableField("inStorage_num")
    private Integer instorageNum;
    /**
     * 下单时间
     */
    private Date orderTime;
    /**
     * 入库时间
     */
    @TableField("inStorage_time")
    private Date instorageTime;
    /**
     * 经销商
     */
    private String dealer;
    @TableField(exist = false)
    private String dealerName;

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }
    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeNum() {
        return typeNum;
    }

    public void setTypeNum(String typeNum) {
        this.typeNum = typeNum;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getInstorageNum() {
        return instorageNum;
    }

    public void setInstorageNum(Integer instorageNum) {
        this.instorageNum = instorageNum;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOrderTime() {
        return orderTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getInstorageTime() {
        return instorageTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setInstorageTime(Date instorageTime) {
        this.instorageTime = instorageTime;
    }

    @Override
    public String toString() {
        return "JyInStorage{" +
        "id=" + id +
        ", product=" + product +
        ", orderNum=" + orderNum +
        ", type=" + type +
        ", typeNum=" + typeNum +
        ", unit=" + unit +
        ", instorageNum=" + instorageNum +
        ", orderTime=" + orderTime +
        ", instorageTime=" + instorageTime +
        "}";
    }
}
